home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 12
/
Amiga Plus Sonderheft Amiga 12.iso
/
pd
/
spiele
/
klondike_adptools
/
install
/
datas
/
french.lha
/
0-Menu.adpro
next >
Wrap
Text File
|
1997-06-21
|
2KB
|
111 lines
/*
** Menu.adpro :
**
** This ARexx script for ADPro v2.5 or higher,
** displays Klondike ADPTools menu.
**
** Klondike & Reko Tools © Copyright Reko Productions - All Rights Reserved.
**
** $VER: Menu/French v2.0 (16.06.97) Copyright © 1995-97 Lejardinier Olivier - All Rights Reserved
**
*/
/*
** ARexx Initializations.
*/
ADDRESS "ADPro"
OPTIONS RESULTS
/*
** Constants Initializations.
*/
NL = '0A'X
DNL = NL || NL
FALSE = 0
TRUE = 1
/*
** Strings initializations.
*/
TITLE_Request = "Requête :"
TITLE_Confirm = "Confirmer :"
MSG_Quit = "Quitter ?"
MSG_Menu = "Menu Klondike ADPTools :" || NL ||,
"------------------------" || DNL ||,
"(0) A propos... "|| DNL ||,
"(1) Exécuter toutes les étapes : " || NL ||,
"(2) - Réduire des images " || NL ||,
"(3) - Calculer la palette globale" || NL ||,
"(4) - Créer les cartes " || NL ||,
"(5) - Créer le jeu de cartes "
GAD_ContinueQuit = "Continuer|Quitter"
GAD_MenuQuit = "0|1|2|3|4|5|Quitter"
/*
** Display Menu.
*/
Continue = FALSE
DO UNTIL ( Continue = TRUE )
OKAYN '"'TITLE_Request'"' '"'MSG_Menu'"' '"'GAD_MenuQuit'"'
IF ( RC = 0 ) THEN
CALL ConfirmQuit
ELSE
IF ( RC = 1 ) THEN
CALL "ADPRO:Commands2/1-About.adpro"
ELSE
IF ( RC = 2 ) THEN
DO
CALL "ADPRO:Commands2/2-ScalePics.adpro"
IF ( RESULT = 0 ) THEN
DO
CALL "ADPRO:Commands2/3-MakeGlobalPalette.adpro" "AUTO"
IF ( RESULT = 0 ) THEN
DO
CALL "ADPRO:Commands2/4-RenderCards.adpro" "AUTO"
IF ( RESULT = 0 ) THEN
CALL "ADPRO:Commands2/5-MakeCardset.adpro" "AUTO"
END
END
END
ELSE
IF ( RC = 3 ) THEN
CALL "ADPRO:Commands2/2-ScalePics.adpro"
ELSE
IF ( RC = 4 ) THEN
CALL "ADPRO:Commands2/3-MakeGlobalPalette.adpro" "MANUAL"
ELSE
IF ( RC = 5 ) THEN
CALL "ADPRO:Commands2/4-RenderCards.adpro" "MANUAL"
ELSE
CALL "ADPRO:Commands2/5-MakeCardset.adpro" "MANUAL"
END
/*
** Quit.
*/
Quit:
EXIT 0
/*
** Sub Routines
*/
ConfirmQuit:
OKAYN '"'TITLE_Confirm'"' '"'MSG_Quit'"' '"'GAD_ContinueQuit'"'
IF ( RC = 0 ) THEN
CALL Quit
RETURN